﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Xml
Imports System.Reflection


Partial Class 测段小结


    Public 结束点 As String
    Public 结束点经度 As String
    Public 结束点纬度 As String
    Public 视距累差 As String
    Public 高差 As String
    Public 距离 As String
    Public 错站数 As String
    Public 退站数 As String
    Public 事件数 As String
    Public 测站数 As String
    Public 加密数据 As String


    Public Property 测段 As 测段
    Public Shared Function Paras(xxNode As XmlNode) As 测段小结
        Dim tmpClass As 测段小结 = New 测段小结()
        Dim nameList As XmlAttributeCollection = xxNode.Attributes
        For Each xxattribute As XmlAttribute In nameList

            Try

                Dim tmpType As Type = tmpClass.GetType()
                Dim tmpP As FieldInfo = tmpType.GetField(xxattribute.Name)
                tmpP.SetValue(tmpClass, xxattribute.Value)
            Catch ex As Exception

            End Try

        Next


        'XmlNodeList childList = xxNode.ChildNodes '取得row下的子节点集合
        'foreach (XmlNode xxxNode in childList)
        '
        '    if (xxxNode.Name.Equals("测站"))
        '    
        '        测站 tmpClass1 = new 测站()
        '        tmpClass.测站.Add(tmpClass1.Paras(xxxNode))
        '     

        ' 


        Return tmpClass

    End Function


End Class

